home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / xml4j.jar / com / ibm / xml / parser / EntityDecl$EntityImpl.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-08-30  |  2.1 KB  |  100 lines

  1. package com.ibm.xml.parser;
  2.  
  3. import org.w3c.dom.Document;
  4. import org.w3c.dom.Entity;
  5. import org.w3c.dom.NamedNodeMap;
  6. import org.w3c.dom.Node;
  7. import org.w3c.dom.NodeList;
  8.  
  9. class EntityDecl$EntityImpl implements Entity {
  10.    EntityDecl decl;
  11.  
  12.    EntityDecl$EntityImpl(EntityDecl var1) {
  13.       this.decl = var1;
  14.    }
  15.  
  16.    public Node getParentNode() {
  17.       return null;
  18.    }
  19.  
  20.    public String getPublicId() {
  21.       return this.decl.getPublicId();
  22.    }
  23.  
  24.    public String getSystemId() {
  25.       return this.decl.getSystemId();
  26.    }
  27.  
  28.    public String getNotationName() {
  29.       return this.decl.getNotationName();
  30.    }
  31.  
  32.    public String getNodeName() {
  33.       return this.decl.getNodeName();
  34.    }
  35.  
  36.    public String getNodeValue() {
  37.       return null;
  38.    }
  39.  
  40.    public void setNodeValue(String var1) {
  41.       throw new TXDOMException((short)7, "This Entity is read-only.");
  42.    }
  43.  
  44.    public short getNodeType() {
  45.       return 6;
  46.    }
  47.  
  48.    public NodeList getChildNodes() {
  49.       return this.decl.getChildNodes();
  50.    }
  51.  
  52.    public Node getFirstChild() {
  53.       return this.decl.getFirstChild();
  54.    }
  55.  
  56.    public Node getLastChild() {
  57.       return this.decl.getLastChild();
  58.    }
  59.  
  60.    public Node getPreviousSibling() {
  61.       return this.decl.getPreviousSibling();
  62.    }
  63.  
  64.    public Node getNextSibling() {
  65.       return this.decl.getNextSibling();
  66.    }
  67.  
  68.    public NamedNodeMap getAttributes() {
  69.       return null;
  70.    }
  71.  
  72.    public Document getOwnerDocument() {
  73.       return this.decl.getOwnerDocument();
  74.    }
  75.  
  76.    public Node insertBefore(Node var1, Node var2) {
  77.       throw new TXDOMException((short)7, "This Entity is read-only.");
  78.    }
  79.  
  80.    public Node replaceChild(Node var1, Node var2) {
  81.       throw new TXDOMException((short)7, "This Entity is read-only.");
  82.    }
  83.  
  84.    public Node removeChild(Node var1) {
  85.       throw new TXDOMException((short)7, "This Entity is read-only.");
  86.    }
  87.  
  88.    public Node appendChild(Node var1) {
  89.       throw new TXDOMException((short)7, "This Entity is read-only.");
  90.    }
  91.  
  92.    public boolean hasChildNodes() {
  93.       return this.decl.hasChildNodes();
  94.    }
  95.  
  96.    public Node cloneNode(boolean var1) {
  97.       return ((EntityDecl)this.decl.cloneNode(var1)).getEntityImpl();
  98.    }
  99. }
  100.